<?php

include("../inc/Function_user.php");
upower();
$info = userinfo();
if($info['hx']==0){
    echo "<script>alert('权限不足');window.location.href='/user/';</script>";exit;
}
$ocode = isset($_GET['code'])?trim($_GET['code']):"";
if(strlen($ocode)==8){
    $oinfo = orderinfo($ocode);
}else{
    $oinfo = false;
}

$tpl->assign("info",$info);
$tpl->assign("glist",$oinfo['glist']);
$tpl->assign("olist",$oinfo); 
$tpl->show("hexiao");
?>